'''
@project : gops
@author  : lupuxiao
@contact : jiucows@gmail.com
@file    : Config.py.py
@time    : 2021-02-01 15:58:05
'''

class LDAPConfig:
    AUTH_LDAP = True
    AUTH_LDAP_SERVER_URI = "ldap://10.2.1.11:389"
    AUTH_LDAP_BIND_DN = "cn=ldapuser,cn=users,dc=bndxqc,dc=com,dc=cn"
    AUTH_LDAP_BIND_PASSWORD = "Bnd2020!"
    AUTH_LDAP_SEARCH_OU = "ou=博纳德控股,dc=bndxqc,dc=com,dc=cn"
    AUTH_LDAP_SEARCH_FILTER = '(sAMAccountName=%(user)s)'
    AUTH_LDAP_USER_ATTR_MAP = {
        "username": "sAMAccountName",
        # "last_name": "displayName",
    }
    AUTH_LDAP_START_TLS = False
